<?php

namespace app\common\model;
use think\Model;


class Admin extends Model{
    public function updateById($data,$id){
        return $this->allowField(true)->save($data,['id'=>$id]);
    }
}